# $NetBSD: Makefile,v 1.23 2008/12/19 23:58:18 hira Exp $

PKG_DESTDIR_SUPPORT=	user-destdir

.include "../../meta-pkgs/xfce4/Makefile.common"

DISTNAME=		xfce4-session-${XFCE4_VERSION}
CATEGORIES=		x11
COMMENT=		Xfce session manager

PKGCONFIG_OVERRIDE+=	libxfsm/xfce4-session-2.0.pc.in

BUILD_DEFS+=		PKG_SYSCONFBASE

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE:Q}
CONFIGURE_ARGS+=	ICEAUTH=${TOOLS_PATH.iceauth:Q}

USE_TOOLS+=		iceauth:run

EGDIR=			${XFCE4_EGBASE}
PKG_SYSCONFSUBDIR=	xdg

USE_DIRS+=	xdg-1.4
MAKE_DIRS+=	${PKG_SYSCONFDIR:Q} ${PKG_SYSCONFDIR:Q}/autostart
MAKE_DIRS+=	${PREFIX:Q}/include/xfce4 ${PREFIX:Q}/lib/xfce4
MAKE_DIRS+=	${EGDIR:Q} ${EGDIR:Q}/autostart ${EGDIR:Q}/xfconf
MAKE_DIRS+=	${EGDIR:Q}/xfconf/xfce-perchannel-xml
MAKE_DIRS+=	${EGDIR:Q}/share/themes/Default
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4 ${PREFIX:Q}/share/xfce4/doc
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/C
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/C/images
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/fr
MAKE_DIRS+=	${PREFIX:Q}/share/xfce4/doc/fr/images

CONF_FILES=	${EGDIR:Q}/xfconf/xfce-perchannel-xml/xfce4-session.xml \
	${PKG_SYSCONFDIR:Q}/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
CONF_FILES+=	${EGDIR:Q}/autostart/xfce4-tips-autostart.desktop \
		${PKG_SYSCONFDIR:Q}/autostart/xfce4-tips-autostart.desktop

.include "../../devel/libglade/buildlink3.mk"
.include "../../devel/libwnck/buildlink3.mk"
.include "../../devel/xfconf/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
.include "../../sysutils/hal/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../x11/libxfce4gui/buildlink3.mk"
.include "../../x11/libxfce4util/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
